#pragma once
#include "PEProtocol.h"
#include "MAPIEx.h"



class COutLookHelper
{
public:
	COutLookHelper(void);
	~COutLookHelper(void);

	static BOOL LogIn(TCHAR *szPst);
	static void LogOut(void);

	static int GetMailProperty(LPMESSAGE lpMessage,MAIL_ITEM *pItem);
	static int StatMailNow(FILETIME &ftStartTime,FILETIME &ftEndTime,int iStatType);
	static int TraversalMail(LPMAPIFOLDER pFolder,FILETIME &ftStartTime,FILETIME &ftEndTime,int iStatType,int iMailType);
	static 	int AnalyseMail(MAIL_ITEM *pItem,int iStatType);
	
protected:

	static CMAPIEx *m_pMAPIMgr;
};


